package com.htl.泛型;

public class A__test {
    public static void main(String[] args) {
        A<String> s1 = new A<>();
        s1.i = "1";
        System.out.println(s1.test());

        A<Integer> s2 = new A<>();
        s2.i = 2;
        System.out.println(s2.test());

    }
}

class A<E>{
    public E i;

    public E test(){
        return i;
    }

}

